package com.whw.fy.mapper;

import com.whw.fy.entity.TeachSummary;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TeachSummaryMapper {
    int deleteByPrimaryKey(Integer teachId);

    int insert(TeachSummary record);

    int insertSelective(TeachSummary record);

    TeachSummary selectByPrimaryKey(Integer teachId);

    int updateByPrimaryKeySelective(TeachSummary record);

    int updateByPrimaryKey(TeachSummary record);

    int updateBatch(List<TeachSummary> list);

    int updateBatchSelective(List<TeachSummary> list);

    int batchInsert(@Param("list") List<TeachSummary> list);

    List<TeachSummary> selectAll();

    List<TeachSummary> selectByTeachStuid(@Param("teachStuid") Integer teachStuid);

    int updateTeachStatusByTeachId(@Param("updatedTeachStatus") Integer updatedTeachStatus, @Param("teachId") Integer teachId);

    TeachSummary selectTopOneByTeachStuid(@Param("teachStuid") Integer teachStuid);

    List<TeachSummary> selectAllByTeachReplyPrincipalTeacherId(@Param("teachReplyPrincipalTeacherId") Integer teachReplyPrincipalTeacherId);

    int CountByteachPostUserIdNowInMonth(@Param("teachPostUserId") Integer teachPostUserId);

    List<TeachSummary> selectByTeachPostUserId(@Param("teachPostUserId")Integer teachPostUserId);



}